<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{$headtitle}}</title>
<meta http-equiv="Content-Language" content="zh-cn" /> 
<meta http-equiv="imagetoolbar" content="no" />
<meta name="MSSmartTagsPreventParsing" content="true" /> 
<meta name="keywords" content="{{$headkeyword}}" /> 
<meta name="description" content="{{$headdescription}}" />
<meta name="author" content="Designs" />
{{section name=a loop=$csslist}}
<link href="{{$csslist[a]}}" type="text/css" rel="stylesheet" />
{{/section}}
{{section name=a loop=$jslist}}
<script language="javascript" src="{{$jslist[a]}}" type="text/javascript"></script>
{{/section}}
<script language="javascript">
var cook = new CookieClass(); 
//cook.setCookie("username",'sdfasfd');//写 
//cook.showCookie();
//cook.getCookie('username');
function fInitUser(){
	var sUser = document.getElementById('username').value
	if (sUser == "") {
		document.getElementById('username').focus();
	}else{
		document.getElementById('password').focus();
	}
	if(cook.getCookie('username')){
		$('saveusername').checked = true;
		$('username').value = cook.getCookie('username');
	}
}
function saveLoginType(){
	if($('saveusername').checked){
		cook.expires = 0; 
		cook.setCookie("username",$('username').value);//写 
	}else{
		cook.deleteCookie('username');
	}
}
function fCheck(){
	var flag = true;
	var tipsvalue ='';
	if($('username').value.length < 3){
		tipsvalue = '用户名不能为空';
		$('username').focus();
		flag = false;
	}else{
		$('showtips').value = '';
	}
	if($('password').value.length < 3){
		if(tipsvalue){
			tipsvalue = tipsvalue + '<br />密码不能为空';
		}else{
			$('password').focus();
			tipsvalue = '密码不能为空';
		}
		flag = false;
	}
	$('showtips').innerHTML = tipsvalue;
	return flag;
}
</script>
</head>

<body onload="fInitUser()">
<div id="login">
<div class="{{$classtype}}">
	<div class="part1">
    	<a href="">设为首页</a>
    	<a href="">网易首页</a>
    	<a href="">帮助</a>
    </div>
    <div class="part2">
    	<dl>
        	<dt>抢注个性化帐号</dt>
            <dd>大量丰富用户名等你抢, 总有一个你喜欢的, Yeah!</dd>
            <dt>邮箱搬家好轻松</dt>
            <dd>只需一键操作, 便可复制其他邮箱的邮件、通讯录</dd>
            <dt>独享280兆网盘 </dt>
            <dd>累计邀请3个好友成功注册Yeah.net, 即可轻松升级</dd>
        </dl>
        <h2>还没有网易Yeah.net帐号?    <a href="">立即注册! </a></h2>
    </div>
    <div class="part3">
        <form method="post" action="" onsubmit="saveLoginType();return fCheck()">
        <div class="username">账号：<input type="text" id="username" name="username" value="{{$username}}"
         onblur="this.className=''" onfocus="this.className='onfocus'" /></div>
        <div class="password">密码：<input type="password" id="password" name="password"
         onblur="this.className=''" onfocus="this.className='onfocus'" />
         <span><a href="">忘记密码了?</a></span>
        </div>
        <div class="saveid"><input type="checkbox" id="saveusername" value="true" /> 记住用户名</div>
        <div class="button">
        	<input class="btnLogin" onmouseover="this.className='onbtn';" onmouseout="this.className=''" 
            	type="submit" value="登 录" />
            <input class="btnReg" onmouseover="this.className='onbtn'" onmouseout="this.className=''" 
            	onclick="location.href='register.php'" type="button" value="注 册" />
        </div>
        </form>
        <div id="showtips">{{$showtip}}</div>
    </div>
</div>
<div class="footer">
	<div>
        <a href="">关于网易</a>
        <a href="">邮箱官方博客</a>
        <a href="">财富邮</a>
        <a href="">随身邮</a>
        <a href="">邮箱伴侣</a>
        <a href="">精美贺卡</a>
        <a href="">举报违法信息</a>
        <a href="">客户服务</a>
    </div>
    <div>相关法律　|　版权所有　©1997-2008</div>
</div>
</div>
</body>
</html>
